package com.ruoyi.teaching.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 考勤对象 ya_attendance
 *
 * @author wwh
 * @date 2024-02-19
 */
@Data
@NoArgsConstructor
@TableName("ya_attendance")
public class Attendance
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 学员姓名 */
    @Excel(name = "学员姓名")
    private String name;

    /** 阶段 */
    @Excel(name = "阶段")
    private Long stage;

    /** 班级编号 */
    @Excel(name = "班级编号")
    private Long classesId;

    /** 月份 */
    @Excel(name = "月份")
    private Integer month;

    /** 出勤状态（1-出席/2-缺席/3-迟到/4-请假） */
    @Excel(name = "出勤状态", readConverterExp = "1-出席/2-缺席/3-迟到/4-请假")
    private String attendance;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;


    @Builder
    public Attendance(Long id, String name, Long stage, Long classesId, Integer month, String attendance, String remark) {
        this.id = id;
        this.name = name;
        this.stage = stage;
        this.classesId = classesId;
        this.month = month;
        this.attendance = attendance;
        this.remark = remark;
    }
}
